home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / BBS / MUBBS / Nate's Sysop 2.0.cpt / Nate's Sysop 2.0 / card_2930.txt < prev    next >
Text File  |  1991-11-21  |  13KB  |  423 lines

  1. -- card: 2930 from stack: in.0
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2792
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: 8003
  11. -- rect: left=15 top=309 right=332 bottom=209
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Change WHOLE Folder's TYPE
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   put getpathname() into appname
  23.   if appname = "" then exit to hypercard
  24.   put "This takes a WHOLE FOLDER and changes any file content's TYPE !" & return into card field status
  25.   put "Folders inside this one will NOT be affected" & return after card field status
  26.   put "Path you picked   =" & appname & return after card field status
  27.   put length of appname into i
  28.   repeat until i <= 0
  29.     if char i of appname = ":" then
  30.       put i into x
  31.       put 0 into i
  32.     end if
  33.     subtract 1 from i
  34.   end repeat
  35.   put "" into out
  36.   put 0 into z
  37.   repeat until z = x
  38.     put out & char z of appname into out
  39.     add 1 to z
  40.   end repeat
  41.   put out & ":" into folder
  42.   put "Using folder path =" & folder & return after card field status
  43.   ask "Change TYPE to what?" with "TEXT"
  44.   if it = "" then exit mouseup
  45.   put it into changetype
  46.   answer "Not reversable, are you sure?" with "YES" or "CANCEL"
  47.   if it = "CANCEL" then
  48.     put "A BIG MESS WAS CANCLED, GOOD THING!"  & return after card field status
  49.     exit to hypercard
  50.   end if
  51.   put files(folder,"",0) into temp
  52.   put 1 into i
  53.   -- and show file names
  54.  
  55.   repeat until line i of temp is empty
  56.     put folder & line i of temp into appname
  57.     get gettype(appname)
  58.     if the number of chars of it = 4 then
  59.       put line i of temp & " TYPE = ‚Äù" &it&"‚Äù " after card field status
  60.     else
  61.       put line i of temp & " TYPE NOT AVAILABLE " after card field status
  62.     end if
  63.     settype appname,changetype
  64.     if the result ‚↠"" then
  65.       put "- NOT CHANGED!!" &return after card field status
  66.     else
  67.       get gettype(appname)
  68.       if the number of chars of it = 4 then
  69.         put " Changed to ‚Äù" &it&"‚Äù "&return after card field status
  70.       else
  71.         put " TYPE STILL NOT AVAILABLE "&return after card field status
  72.       end if
  73.     end if
  74.     add 1 to i
  75.   end repeat
  76.   put " -- DONE --" & return after card field status
  77. end mouseUp
  78.  
  79.  
  80. -- part 2 (button)
  81. -- low flags: 00
  82. -- high flags: A003
  83. -- rect: left=420 top=216 right=239 bottom=510
  84. -- title width / last selected line: 0
  85. -- icon id / first selected line: 0 / 0
  86. -- text alignment: 1
  87. -- font id: 0
  88. -- text size: 12
  89. -- style flags: 0
  90. -- line height: 16
  91. -- part name: ABOUT
  92. ----- HyperTalk script -----
  93. on mouseUp
  94.   show card field "info"
  95.   repeat until the mouse is down
  96.   end repeat
  97.   hide card field "info"
  98. end mouseUp
  99.  
  100.  
  101.  
  102. -- part 4 (field)
  103. -- low flags: 00
  104. -- high flags: 0007
  105. -- rect: left=8 top=28 right=212 bottom=510
  106. -- title width / last selected line: 0
  107. -- icon id / first selected line: 0 / 0
  108. -- text alignment: 0
  109. -- font id: 4
  110. -- text size: 9
  111. -- style flags: 0
  112. -- line height: 12
  113. -- part name: status
  114.  
  115.  
  116. -- part 5 (button)
  117. -- low flags: 00
  118. -- high flags: 8003
  119. -- rect: left=15 top=280 right=303 bottom=209
  120. -- title width / last selected line: 0
  121. -- icon id / first selected line: 0 / 0
  122. -- text alignment: 1
  123. -- font id: 0
  124. -- text size: 12
  125. -- style flags: 0
  126. -- line height: 16
  127. -- part name: Change ONE File's TYPE
  128. ----- HyperTalk script -----
  129. on mouseUp
  130.   put getpathname() into appname
  131.   if appname = "" then exit to hypercard
  132.   put "This changes a FILE's TYPE !" & return into card field status
  133.   put "File you picked   =" & appname & return after card field status
  134.   put appname into folder
  135.   ask "Change TYPE to what?" with "TEXT"
  136.   if it = "" then exit mouseup
  137.   put it into changetype
  138.   answer "Not reversable, are you sure?" with "YES" or "CANCEL"
  139.   if it = "CANCEL" then
  140.     put "A BIG MESS WAS CANCLED, GOOD THING!"  & return after card field status
  141.     exit to hypercard
  142.   end if
  143.   put folder into appname
  144.   get gettype(appname)
  145.   if the number of chars of it = 4 then
  146.     put  " TYPE = ‚Äù" &it&"‚Äù " after card field status
  147.   else
  148.     put  " TYPE NOT AVAILABLE " after card field status
  149.   end if
  150.   settype appname,changetype
  151.   if the result ‚↠"" then
  152.     put "- NOT CHANGED!!" &return after card field status
  153.   else
  154.     get gettype(appname)
  155.     if the number of chars of it = 4 then
  156.       put " Changed to ‚Äù" &it&"‚Äù "&return after card field status
  157.     else
  158.       put " TYPE STILL NOT AVAILABLE "&return after card field status
  159.     end if
  160.   end if
  161.   put " -- DONE --" & return after card field status
  162. end mouseUp
  163.  
  164.  
  165. -- part 6 (button)
  166. -- low flags: 00
  167. -- high flags: 8003
  168. -- rect: left=15 top=221 right=244 bottom=209
  169. -- title width / last selected line: 0
  170. -- icon id / first selected line: 0 / 0
  171. -- text alignment: 1
  172. -- font id: 0
  173. -- text size: 12
  174. -- style flags: 0
  175. -- line height: 16
  176. -- part name: LIST a Folder's TYPES
  177. ----- HyperTalk script -----
  178. on mouseUp
  179.   put getpathname() into appname
  180.   if appname = "" then exit to hypercard
  181.   put "This shows all files in a folder & the types" & return into card field status
  182.   put "Folders inside this one will NOT be read" & return after card field status
  183.   put "Path you picked   =" & appname & return after card field status
  184.   put length of appname into i
  185.   repeat until i <= 0
  186.     if char i of appname = ":" then
  187.       put i into x
  188.       put 0 into i
  189.     end if
  190.     subtract 1 from i
  191.   end repeat
  192.   put "" into out
  193.   put 0 into z
  194.   repeat until z = x
  195.     put out & char z of appname into out
  196.     add 1 to z
  197.   end repeat
  198.   put out & ":" into folder
  199.   put "Using folder path =" & folder & return after card field status
  200.   put files(folder,"",0) into temp
  201.   put 1 into i
  202.   -- and show file names
  203.  
  204.   repeat until line i of temp is empty
  205.     put folder & line i of temp into appname
  206.     get gettype(appname)
  207.     if the number of chars of it = 4 then
  208.       put line i of temp & " TYPE = ‚Äù" &it&"‚Äù "&return after card field status
  209.     else
  210.       put line i of temp & " TYPE NOT AVAILABLE "&return after card field status
  211.     end if
  212.     add 1 to i
  213.   end repeat
  214.   put " -- DONE --" & return after card field status
  215. end mouseUp
  216.  
  217.  
  218. -- part 7 (button)
  219. -- low flags: 00
  220. -- high flags: 8003
  221. -- rect: left=223 top=309 right=332 bottom=417
  222. -- title width / last selected line: 0
  223. -- icon id / first selected line: 0 / 0
  224. -- text alignment: 1
  225. -- font id: 0
  226. -- text size: 12
  227. -- style flags: 0
  228. -- line height: 16
  229. -- part name: Try to DeMacBinify a FOLDER
  230. ----- HyperTalk script -----
  231. on mouseUp
  232.   put getpathname() into appname
  233.   if appname = "" then exit to hypercard
  234.   put "This takes a WHOLE FOLDER and TRIES to MacDebinify every file !" & return into card field status
  235.   put "If a file is converted, it is saved with the extension .CNV" & return after card field status
  236.   put "Folders inside this one will NOT be affected" & return after card field status
  237.   put "Path you picked   =" & appname & return after card field status
  238.   put length of appname into i
  239.   repeat until i <= 0
  240.     if char i of appname = ":" then
  241.       put i into x
  242.       put 0 into i
  243.     end if
  244.     subtract 1 from i
  245.   end repeat
  246.   put "" into out
  247.   put 0 into z
  248.   repeat until z = x
  249.     put out & char z of appname into out
  250.     add 1 to z
  251.   end repeat
  252.   put out & ":" into folder
  253.   put "Using folder path =" & folder & return after card field status
  254.   answer "Not reversable (but doesn't delete anything), are you sure?" with "YES" or "CANCEL"
  255.   if it = "CANCEL" then
  256.     put "CANCLED, GOOD THING!"  & return after card field status
  257.     exit to hypercard
  258.   end if
  259.   put files(folder,"",0) into temp
  260.   put 1 into i
  261.   -- and show file names
  262.  
  263.   repeat until line i of temp is empty
  264.     put folder & line i of temp into appname
  265.     get deMacBinify(appname,appname & ".CNV")
  266.     put line i of temp & " Result = ‚Äù" &it&"‚Äù "&return after card field status
  267.     add 1 to i
  268.   end repeat
  269.   put " -- DONE --" & return after card field status
  270. end mouseUp
  271.  
  272.  
  273.  
  274. -- part 8 (button)
  275. -- low flags: 00
  276. -- high flags: 8003
  277. -- rect: left=222 top=280 right=303 bottom=416
  278. -- title width / last selected line: 0
  279. -- icon id / first selected line: 0 / 0
  280. -- text alignment: 1
  281. -- font id: 0
  282. -- text size: 12
  283. -- style flags: 0
  284. -- line height: 16
  285. -- part name: DeMacBinify ONE file
  286. ----- HyperTalk script -----
  287. on mouseUp
  288.   put getpathname() into appname
  289.   if appname = "" then exit to hypercard
  290.   put "This TRIES to MacDebinify a file !" & return into card field status
  291.   put "If the file is converted, it is saved with the extension .CNV" & return after card field status
  292.   put "File you picked   =" & appname & return after card field status
  293.   answer "Not reversable (but doesn't delete anything), are you sure?" with "YES" or "CANCEL"
  294.   if it = "CANCEL" then
  295.     put "CANCLED, GOOD THING!"  & return after card field status
  296.     exit to hypercard
  297.   end if
  298.   get deMacBinify(appname,appname & ".CNV")
  299.   put " Result = ‚Äù" &it&"‚Äù "&return after card field status
  300.   put " -- DONE --" & return after card field status
  301. end mouseUp
  302.  
  303.  
  304.  
  305. -- part 9 (button)
  306. -- low flags: 00
  307. -- high flags: 8003
  308. -- rect: left=220 top=219 right=242 bottom=414
  309. -- title width / last selected line: 0
  310. -- icon id / first selected line: 0 / 0
  311. -- text alignment: 1
  312. -- font id: 0
  313. -- text size: 12
  314. -- style flags: 0
  315. -- line height: 16
  316. -- part name: MacBinify ONE file
  317. ----- HyperTalk script -----
  318. on mouseUp
  319.   put getpathname() into appname
  320.   if appname = "" then exit to hypercard
  321.   put "This TRIES to MacBinify a file !" & return into card field status
  322.   put "If the file is converted, it is saved with the extension .CNV" & return after card field status
  323.   put "File you picked   =" & appname & return after card field status
  324.   answer "Not reversable (but doesn't delete anything), are you sure?" with "YES" or "CANCEL"
  325.   if it = "CANCEL" then
  326.     put "CANCLED, GOOD THING!"  & return after card field status
  327.     exit to hypercard
  328.   end if
  329.   macBinify appname,appname & ".CNV"
  330.   put " Result = ‚Äù" &it&"‚Äù "&return after card field status
  331.   put " -- DONE --" & return after card field status
  332. end mouseUp
  333.  
  334.  
  335.  
  336. -- part 10 (button)
  337. -- low flags: 00
  338. -- high flags: 8003
  339. -- rect: left=221 top=249 right=272 bottom=415
  340. -- title width / last selected line: 0
  341. -- icon id / first selected line: 0 / 0
  342. -- text alignment: 1
  343. -- font id: 0
  344. -- text size: 12
  345. -- style flags: 0
  346. -- line height: 16
  347. -- part name: Try to MacBinify a FOLDER
  348. ----- HyperTalk script -----
  349. on mouseUp
  350.   put getpathname() into appname
  351.   if appname = "" then exit to hypercard
  352.   put "This takes a WHOLE FOLDER and TRIES to MacBinify every file !" & return into card field status
  353.   put "If a file is converted, it is saved with the extension .CNV" & return after card field status
  354.   put "Folders inside this one will NOT be affected" & return after card field status
  355.   put "Path you picked   =" & appname & return after card field status
  356.   put length of appname into i
  357.   repeat until i <= 0
  358.     if char i of appname = ":" then
  359.       put i into x
  360.       put 0 into i
  361.     end if
  362.     subtract 1 from i
  363.   end repeat
  364.   put "" into out
  365.   put 0 into z
  366.   repeat until z = x
  367.     put out & char z of appname into out
  368.     add 1 to z
  369.   end repeat
  370.   put out & ":" into folder
  371.   put "Using folder path =" & folder & return after card field status
  372.   answer "Not reversable (but doesn't delete anything), are you sure?" with "YES" or "CANCEL"
  373.   if it = "CANCEL" then
  374.     put "CANCLED, GOOD THING!"  & return after card field status
  375.     exit to hypercard
  376.   end if
  377.   put files(folder,"",0) into temp
  378.   put 1 into i
  379.   -- and show file names
  380.  
  381.   repeat until line i of temp is empty
  382.     put folder & line i of temp into appname
  383.     macBinify appname,appname & ".CNV"
  384.     put line i of temp & " Result = ‚Äù" &it&"‚Äù "&return after card field status
  385.     add 1 to i
  386.   end repeat
  387.   put " -- DONE --" & return after card field status
  388. end mouseUp
  389.  
  390.  
  391.  
  392. -- part 3 (field)
  393. -- low flags: 81
  394. -- high flags: 0004
  395. -- rect: left=57 top=52 right=323 bottom=469
  396. -- title width / last selected line: 0
  397. -- icon id / first selected line: 0 / 0
  398. -- text alignment: 0
  399. -- font id: 3
  400. -- text size: 10
  401. -- style flags: 0
  402. -- line height: 13
  403. -- part name: info
  404.  
  405.  
  406. -- part contents for card part 3
  407. ----- text -----
  408. This is a Hypercard HACK !                                                      Nate's Sysop V2.0
  409.  
  410. Use this at your own risk, and as always:
  411.  
  412. USE IT ON A COPY OF YOUR DATA !! (BACK UP YOUR DATA TOO !!)
  413.  
  414. This simply "MacBinifies" or "DeMacBinifies" a file or a whole folder of files.
  415.  
  416. Use this to prepare files for "Upload Maniac", uploading massive amounts of files to MUBBS !   Have fun!
  417.  
  418. READ THE "READ ME" FILE THAT CAME WITH THIS STACK !
  419.  
  420. What do you want for nothin' ?
  421.  
  422.  
  423.                                              (Click anywhere to return)